package com.bangf.repo;

import com.bangf.domain.FpEvaluation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface EvaluationRepo extends JpaRepository<FpEvaluation,Integer> {

    @Query(value =  "SELECT * FROM fp_evaluation " +
                    "WHERE town_id = ?1",nativeQuery = true)
    FpEvaluation findByTownId(Integer townId);
}
